//
//  mm_codeItemForRepairItemViewController.h
//  HondaPro_2
//
//  Created by Eric on 13-7-30.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainMenuDataModel.h"
#import "HelpClass.h"
#import "webConfig.h"
#import "webService.h"

#import "DDPopoverBackgroundView.h"
#import "popContentViewController.h"

@interface mm_codeItemForRepairItemViewController : UIViewController <ContentViewControllerDelegate>
{
    //下拉菜单的属性
    
    //症状代码描述索引的属性
    NSArray *_arrOriginalDataForSymptomCodeIndex;
    NSMutableArray *_arrDisDataForSymptomCodeIndex;
    NSInteger _nRowForSymptomCodeIndexSel;
    
    //症状代码描述的索引
    NSArray *_arrOriginalDataForSymptomCodeDescription;
    NSMutableArray *_arrDisDataForSymptomCodeDescription;
    NSInteger _nRowForSymPtomCodeDescriptionSel;
    
    //症状代码列表
    NSArray *_arrOriginalDataForSymptom;
    NSMutableArray *_arrDisDataForSymptom;
    NSInteger _nRowForSymptom;
    
    //故障代码描述列表
    NSArray *_arrOriginalDataForFaultCodeDescription;
    NSMutableArray *_arrDisDataForFaultCodeDescription;
    NSInteger _nRowForFaultCodeDescription;
    
    //故障代码列表
    NSArray *_arrOriginalDataForFaultCode;
    NSMutableArray *_arrDisDataForFaultCode;
    NSInteger _nRowForFaultCode;
    
    //处理代码列表
    NSArray *_arrOriginalDataForActionCode;
    NSMutableArray *_arrDisDataForActionCode;
    NSInteger _nRowForActionCode;
    
    //下拉菜单属性
    popContentViewController *_contentCon;
    UIPopoverController *_popCon;
}

- (IBAction)symptomCodeDescriptionIndexBtnPressed:(UIButton *)sender;
- (IBAction)symptomCodeDescriptionItemBtnPressed:(UIButton *)sender;
- (IBAction)symptomCodeBtnPressed:(UIButton *)sender;
- (IBAction)faultCodeDescriptionItemBtnPressed:(UIButton *)sender;
- (IBAction)faultCodeBtnPressed:(UIButton *)sender;
- (IBAction)actionCodeBtnPressed:(UIButton *)sender;

@property (strong, nonatomic) IBOutlet UITextField *symptomCodeTxt;
@property (strong, nonatomic) IBOutlet UITextField *faultCodeTxt;
@property (strong, nonatomic) IBOutlet UITextField *actionCodeTxt;

@property (strong, nonatomic) IBOutlet UIButton *symptomCodeDescriptionIndexBtn;
@property (strong, nonatomic) IBOutlet UIButton *symptomCodeDescriptionItemBtn;
@property (strong, nonatomic) IBOutlet UIButton *symptomCodeBtn;
@property (strong, nonatomic) IBOutlet UIButton *faultCodeDescriptionItemBtn;
@property (strong, nonatomic) IBOutlet UIButton *faultCodeBtn;
@property (strong, nonatomic) IBOutlet UIButton *actionCodeBtn;


//接口的回调方法
-(void)getSymptomCodeDescriptionIndexList:(NSNotification*)notification;
-(void)getSymptomCodeDescriptionItemList:(NSNotification*)notification;
-(void)getSymptomCodeList:(NSNotification*)notification;
-(void)getFaultCodeDescriptionItemList:(NSNotification*)notification;
-(void)getFaultCodeList:(NSNotification*)notification;
-(void)getActionCodeList:(NSNotification*)notification;

-(void)initAllTheData;

//创建下拉菜单的回调方法
-(void)createThePopViewControl:(UIButton *)sender;

//注册消息
-(void)addAllObserver;
//移除消息
-(void)removeAllObserver;

@end
